
public class Card 
{
	public char colour;
	public String figure;
	
	
	Card()
	{
		//null?
	}
	Card(int f, int c)
	{
		String figureTab[]={"2","3","4","5","6","7","8","9","10","J","Q","K","A"};
		char colourTab[]={'S','D','H','C'};
		this.figure=figureTab[f];
		this.colour=colourTab[c];
		
	}
	
	public String fullCardName()
	{
		String[] Figure={"Jack", "Queen", "King", "Ace"};
		String[] Colour={"Spade","Diamond","Heart","Club"};
		return (this.figure=="J"?Figure[0]:(this.figure=="Q"?Figure[1]:(this.figure=="K"?Figure[2]:(this.figure=="A"?Figure[3]:this.figure))))+" of "+(this.colour=='S'?Colour[0]:(this.colour=='D'?Colour[1]:(this.colour=='H'?Colour[2]:Colour[3])));

	}
	
	public String showCard()
	{
		return (this.figure+this.colour);
	}
	
	public int Value()
	{
		int i=0;
		String figureTab[]={"zero","jeden","2","3","4","5","6","7","8","9","10","J","Q","K","A"};
		for (i=2;i<15;i++) 
			if (this.figure==figureTab[i])
				break;
		return i;
		
	}

}
